package com.recruit.g1.common.enums;

import java.util.Arrays;
import java.util.List;
import org.springframework.util.CollectionUtils;

public enum AuditStatusEnum {
    REJECTED(0, "审核未通过"),
    APPROVED(1, "审核通过"),
    UNAUDITED(2, "未审核");

    private Integer status;
    private String desc;

    private AuditStatusEnum(int value, String description) {
        this.status = value;
        this.desc = description;
    }

    public static List<Integer> getUnAuditValue(List<Integer> status) {
        return !CollectionUtils.isEmpty(status) ? status : Arrays.asList(REJECTED.status, UNAUDITED.status);
    }

    public Integer getValue() {
        return this.status;
    }

    public String getDescription() {
        return this.desc;
    }
}
